package com.consumerService.module.feignClient.fallback;

import com.consumerService.module.feignClient.ProviderServiceClient;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
@Slf4j
public class ProviderServiceFallback implements ProviderServiceClient {


     Logger logger = LoggerFactory.getLogger(ProviderServiceFallback.class);


    @Override
    public Map<String, Object> getByFeignClient(Integer id) {
        // 进行日志操作
        logger.error("出现异常！");
        return null;
    }

    @Override
    public Map<String, Object> postByFeignClient(Map<String, Object> params) {
        // 进行日志
    	logger.error("出现异常！");
        return null;
    }
       
}
